package com.xtm.exercise.context;

import com.xtm.exercise.service.Strategy;

/***
 *@Author: 王磊
 *@CreateTime: 2025-06-12  21:00
 *@Description: 上下文类，用于管理所有的策略
 *@title: ContextManager
 */
public class StrategyContextManager {

    private Strategy strategy;

    public StrategyContextManager(Strategy strategy){
        this.strategy = strategy;
    }

    public void doSomethingStrategy(){
        strategy.doSomething();
    }
}
